package com.dzpk.gameserver.util;

import java.util.ArrayList;
import java.util.List;

public class BaseListenEvent<T> {

    private List<T> listeners = new ArrayList<T>();

    public void bindListener(T t) {
        listeners.add(t);
    }

    public void unbindListener(T t) {
        listeners.remove(t);
    }

    public List<T> getListeners() {
        return listeners;
    }

    public void setListeners(List<T> listeners) {
        this.listeners = listeners;
    }

}
